<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <!-- vue指令 v-bind
   1.作用：动态的设置html的标签属性->src url title...
   2.语法：v-bind:属性名=“表达式”
   3.注意：简写形式：属性名=“表达式” -->
  <div id="app">
    <!-- v-bind:src  => :src -->
    <img v-bind:src="imgUrl" alt="">
    <img :src="imgUrl" :title="msg" alt="">
  </div>
  <script src="./vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        imgUrl: './资料/day01/准备代码/imgs/10-01.png',
        msg: 'hello 波仔'
      }
    })

  </script>
</body>
</html>